package com.swu.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "规则查询参数")
public class RuleQueryDTO extends PageQueryDTO {
    
    @Schema(description = "规则名称")
    @Size(max = 100, message = "规则名称长度不能超过100个字符")
    private String ruleName;
    
    @Schema(description = "规则类型：1-条件必填检查 2-逻辑一致性检查")
    @Pattern(regexp = "^(|[12])$", message = "规则类型只能是1或2")
    private String ruleType;
    
    @Schema(description = "规则状态：0-禁用 1-启用")
    @Pattern(regexp = "^(|[01])$", message = "规则状态只能是0或1")
    private String status;
} 